package com.qidianit.mes.pojo.pro;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.awt.*;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description:
 * @Author: wang fei long
 * @Date: 2025/9/18 0018 - 15:08
 */
@Data
@TableName("workflow")
public class Workflow {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("workflow_code")
    private String workflowCode;
    @TableField("workflow_name")
    private String workflowName;
    private Integer status;
    @TableField("workflow_description")
    private String workflowDescription;
    private String remarks;
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
    @TableField("create_by")
    private String createBy;
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;
    @TableField("update_by")
    private String updateBy;
    @TableField("delete_flag")
    private Integer deleteFlag;



    private List<Process> processList;
}
